package cn.wolfcode.qo;

import lombok.*;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor

public class QueryObject {
    private String keyword;
    private int currentPage = 1;
    private int pageSize = 3;

    public int getStart(){
        return (currentPage - 1 ) * pageSize;
    }
}
